home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 34.zip
/
BS1 part 34
/
FredFish PD 314.adf
/
Zc
/
zcsrc.lzh
/
IOLib
/
stdio
/
sscanf.c
< prev
next >
Wrap
C/C++ Source or Header
|
1988-11-09
|
379b
|
28 lines
#include <stdio.h>
static int sgetc(s)
unsigned char **s;
{
register unsigned char c;
c = *(*s)++;
return((c == '\0') ? EOF : c);
}
static int sungetc(c, s)
int c;
unsigned char **s;
{
if(c == EOF)
c = '\0';
return(*--(*s) = c);
}
sscanf(buf, fmt, arg)
unsigned char *buf;
unsigned char *fmt;
int arg;
{
return(_scanf(&buf, sgetc, sungetc, fmt, &arg));
}